<?php
require_once '../ThumbLib.inc.php';

$thumb = PhpThumbFactory::create('test.jpg');
$thumb->resize(120, 120);
$thumb->save('test_thumb.jpg');

echo '<pre>';
print_r($thumb->getFileName());
print_r($thumb->getCurrentDimensions());
print_r($thumb->getNewDimensions());
?>